package com.tuananh.radnom.model.netpoller;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import org.rrd4j.core.RrdDef;

import com.tuananh.radnom.model.iputils.IPRange;
import com.tuananh.radnom.model.netservice.NetService;
import com.tuananh.radnom.model.thresholding.AbstractThresholder;

@XmlRootElement
public class PollPackage {
	String name;
	ArrayList<NetService> services;
	String netInt;
	String group;
	IPRange range;

	@XmlElement(required=false)
	public IPRange getRange() {
		return range;
	}

	public void setRange(IPRange range) {
		this.range = range;
	}
	@XmlElement(required=false)
	public String getNetInt() {
		return netInt;
	}

	public void setNetInt(String netInt) {
		this.netInt = netInt;
	}
	@XmlElement(required=false)
	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}
	@XmlAttribute
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@XmlElementWrapper(name="services")
	@XmlElement(name="service")
	public ArrayList<NetService> getServices() {
		return services;
	}

	public void setServices(ArrayList<NetService> services) {
		this.services = services;
	}

}
